﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace WeChatSDK.WeChatDto.Conversation.ReceivingMessage.EventMessage
{
    /// <summary>
    /// 二维码事件消息
    /// </summary>
    [XmlRoot(Namespace = "", IsNullable = false, ElementName = "xml")]
    public class QREventMessageDto:EventMessageDto
    {
        /// <summary>
        /// Event为 subscribe 时， 事件KEY值，qrscene_为前缀，后面为二维码的参数值
        /// Event为 SCAN 时， 事件KEY值，是一个32位无符号整数，即创建二维码时的二维码scene_id
        /// </summary>
        [XmlElement("EventKey", DataType = "string")]
        public string EventKey { get; set; }
        /// <summary>
        /// 二维码的ticket，可用来换取二维码图片
        /// </summary>
        [XmlElement("Ticket", DataType = "string")]
        public string Ticket { get; set; }
    }
}
